RETurn

Syntax: RETurn [expression]
Location: QL ROM

This command has two actual uses. The main use of RETurn is to force an early return from a PROCedure or FuNction definition block. A FuNction must always return a value and the definition block must always contain a RETurn statement to return this value.

The second use of RETurn is to mark the end of a sub-routine which has been called with GO SUB.

CROSS-REFERENCE:
See DEFine PROCedure and DEFine FuNction. Please also refer to GO SUB.
